Skip to content

fixes for c++ error on missing enum cast and warning on MlKemKey init#928

Merged
ejohnstown merged 2 commits intowolfSSL:masterfrom
JacobBarthelmeh:cpp
Apr 17, 2026
Merged

fixes for c++ error on missing enum cast and warning on MlKemKey init#928
ejohnstown merged 2 commits intowolfSSL:masterfrom
JacobBarthelmeh:cpp

Conversation

@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

No description provided.

@JacobBarthelmeh JacobBarthelmeh self-assigned this Apr 16, 2026
Copilot AI review requested due to automatic review settings April 16, 2026 22:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes C++ build issues in the ML-KEM hybrid key exchange paths by addressing enum type mismatches and initialization warnings.

Changes:

  • Replace MlKemKey kem = {0}; with explicit WMEMSET(&kem, 0, sizeof(kem)); to avoid C++ aggregate-init warnings.
  • Add explicit casts to (enum wc_HashType) for wc_HashGetDigestSize() and wc_Hash() calls to satisfy C++ enum typing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/internal.c Outdated
Comment thread src/internal.c Outdated
Comment thread src/internal.c Outdated
@ejohnstown ejohnstown merged commit 6b89cb7 into wolfSSL:master Apr 17, 2026
131 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants